package com.demo.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.demo.bean.Article;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface ArticleMapper extends BaseMapper<Article> {
	int add(List<Article> articleList);

	int deleteList(List<Long> ids);

	IPage<Article> selectArticlePage(@Param("page")Page<Article> page);

	List<Article> findByTitle(@Param("title") String title);
}
